[C#] Get Index of Control in an Control-Array
Posted
by Cocaine112358
on Stack Overflow
See other posts from Stack Overflow
or by Cocaine112358
Published on 2010-05-27T15:14:09Z
Indexed on
2010/05/27
15:21 UTC
Read the original article
Hit count: 137
I have a TextBox Array
private TextBox[,] Fields = new TextBox[9, 9];
and all the TextBoxes have got the same TextChanged-Event
void Field_Changed( object sender, EventArgs e )
Is there a way to get the Index of the sender in the Array (without giving each TextBox it's own EventHandler)?
© Stack Overflow or respective owner